package com.kxmall.admin.controller.vehicle.service;

import com.kxmall.common.core.domain.PageQuery;
import com.kxmall.common.core.page.TableDataInfo;
import com.kxmall.vehicle.domain.bo.KxVehicleBoxInGoodsBo;
import com.kxmall.vehicle.domain.vo.KxVehicleBoxUpGoodsVo;
import com.kxmall.vehicle.domain.vo.KxVehicleVo;

import java.util.Collection;
import java.util.List;

/**
 * 商品入柜Service接口
 */
public interface IKxVehicleBoxUpGoodsService {

    /**
     * 查询商品入柜
     */
    KxVehicleBoxUpGoodsVo queryById(Long id);

    /**
     * 查询商品入柜列表
     */
    TableDataInfo<KxVehicleBoxUpGoodsVo> queryPageList(KxVehicleBoxInGoodsBo bo, PageQuery pageQuery);

    /**
     * 查询商品入柜列表
     */
    List<KxVehicleBoxUpGoodsVo> queryList(KxVehicleBoxInGoodsBo bo);

    /**
     * 新增商品入柜
     */
    Boolean insertByBo(KxVehicleBoxInGoodsBo bo);

    /**
     * 修改商品入柜
     */
    Boolean updateByBo(KxVehicleBoxInGoodsBo bo);

    /**
     * 校验并批量删除商品入柜信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 入柜
     * @param bo
     * @return
     */
    Boolean updateUpVehicleBox(KxVehicleBoxInGoodsBo bo);

    /**
     * 获取所有餐车的名称
     * @param bo
     * @return
     */
    List<KxVehicleVo> vehicleBoxAllName(List<Long> vehicleIds);
}
